#!/bin/bash

if [ -e "./build" ]
then
  echo "exist ./build and del"
  rm -rf ./build
fi

mkdir -p build/debug

cd build/debug

cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./install ../..

make

make install